package com.yanqu.road.server.cmd.variety;

import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.match.CrossMatchMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.CrossProtocol;

/**
 * @author ：zfr
 * @date ：2021/2/6 15:03
 */
@Cmd(code = CrossProtocol.C_VARIETY_SYNC_VARIETY_LIST, desc = "同步杂艺列表")
public class SyncVarietyListCmd extends CrossCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        CrossMatchMgr.syncVarietyList(packet.getPlayerId(), serverId);
    }

    @Override
    public void sendData() {

    }
}
